package team.seekers.catering.community.entity.dao;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;

/**
* @Description:
* @Author: wgq
* @Date: 2022/3/17
*/

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Article对象", description="文章表")
public class Article {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    @ApiModelProperty(value = "文章名称")
    private String name;

    @TableField("u_id")
    private String userId;

    @ApiModelProperty(value = "文章内容")
    private String content;

    @ApiModelProperty(value = "点赞用户id集合")
    private String likeUser;

    @ApiModelProperty(value = "点赞数")
    private Integer likeNum;

    @ApiModelProperty(value = "评论id集合")
    private String commentsFirst;

    @ApiModelProperty(value = "评论数")
    private Integer commentsNum;

    @TableLogic
    private Integer isDeleted;

    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;
}
